/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.ka.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.kaaction.common.persistence.Page;
import com.kaaction.common.service.CrudService;
import com.kaaction.modules.ka.entity.KaCategory;
import com.kaaction.modules.ka.dao.KaCategoryDao;

/**
 * 品类Service
 * @author huanghaiming
 * @version 2017-06-14
 */
@Service
@Transactional(readOnly = true)
public class KaCategoryService extends CrudService<KaCategoryDao, KaCategory> {

	public KaCategory get(String id) {
		return super.get(id);
	}
	
	public List<KaCategory> findList(KaCategory kaCategory) {
		return super.findList(kaCategory);
	}
	
	public Page<KaCategory> findPage(Page<KaCategory> page, KaCategory kaCategory) {
		return super.findPage(page, kaCategory);
	}
	
	@Transactional(readOnly = false)
	public void save(KaCategory kaCategory) {
		super.save(kaCategory);
	}
	
	@Transactional(readOnly = false)
	public void delete(KaCategory kaCategory) {
		super.delete(kaCategory);
	}

	public int getEqual(KaCategory kaCategory) {
		return super.dao.getEqual(kaCategory);
	}
	
}